<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .slider-bar {
            position: absolute;
            cursor: pointer;
            right: 0;
            top: 650px;
            width: 45px;
            /* height: 200px; */
            background-color: orange;
        }

        .w {
            width: 1200px;
            margin: 10px auto;
            text-align: center;
            font-size: 30px;
            color: #fff;
        }

        .header {
            height: 150px;
            background-color: orangered;
        }

        .banner {
            height: 450px;
            background-color: lightblue;
        }

        .main {
            /* height: 1000px; */
            background-color: yellowgreen;
        }

        .slider-bar div {
            text-align: center;
            padding: 5px 0;
            color: #fff;
        }

        .slider-bar .active {
            background-color: orangered;
        }

        .goods {
            height: 600px;
            background-color: pink;
        }

        .zhibo {
            height: 600px;
            background-color: lightcoral;
        }

        .like {
            height: 600px;
            background-color: indigo;
        }

        .back-top {
            display: none;
        }

        .footer {
            height: 400px;
            background-color: orange;
        }
    </style>
</head>

<body>
    <!-- 仿造淘宝侧边导航栏案例 -->
    <div class="slider-bar">
        <div data-index="goods" class="slider-bar-item">品质好货</div>
        <div data-index="zhibo" class="slider-bar-item">好店直播</div>
        <div data-index="like" class="slider-bar-item">猜你喜欢</div>
        <div class="back-top">返回顶部</div>
    </div>
    <div class="header w">Header 头部</div>
    <div class="banner w">Banner 轮播区域</div>
    <div class="main w">Main 主体部分
        <div class="goods" id="goods">品质好货</div>
        <div class="zhibo" id="zhibo">好店直播</div>
        <div class="like" id="like">猜你喜欢</div>
    </div>
    <div class="footer w">
        我是底部
    </div>
</body>

</html>